//声明全局变量
window.apiUrl = 'http://ecservice.clientgear.com';
window.cors_config = {
    api_host: window.apiUrl,
    api_uplodeUrl: window.apiUrl + '/adresource/upload',
    uplodeVideo: window.apiUrl + '/adresource/uploadAdvideo',
    api_logout: window.apiUrl + '/logusers/logout',
    logout_url: window.apiUrl + '/login.html',
    isTest: window.location.pathname.indexOf('\/html\/') == -1 ? false : true,
    basePath: 'walle-web'
};
//配置require

requirejs.config({
    "paths": {
        "jquery": "../../lib/jquery/jquery.min",
        "text": "../../lib/requirejs/text",
        "bootstrap": "../../lib/bootstrap/dist/js/bootstrap.min",
        "http": "./app/framework/utils/http",
        "note": "./app/framework/model/note",
        "parser": "./app/framework/model/parser",
        "static": "./app/framework/model/static",
        "select2": "modules/common/selectExtend",
        "systemPage": "modules/common/systemPage",
        "language": "modules/global/language",
        "languageData": "modules/model/languageData",
        "plgDrop": "modules/plugins/drop",
        "utils": "../../lib/NDPUI/dist/com/splitjs/utils",
        "sinput": "../../lib/NDPUI/dist/com/splitjs/sinput",
        "tabs": "../../lib/NDPUI/dist/com/splitjs/tabs",
        "upload": "../../lib/NDPUI/dist/com/splitjs/upload",
        "vList2": "../../lib/NDPUI/dist/com/splitjs/vList2",
        "alert": "../../lib/NDPUI/dist/com/splitjs/alert",
        "confirm": "../../lib/NDPUI/dist/com/splitjs/confirm",
        "treable": "../../lib/NDPUI/dist/com/splitjs/treable",
        "sutable": "../../lib/NDPUI/dist/com/splitjs/sutable",
        "drop": "../../lib/NDPUI/dist/com/splitjs/drop",
        "drop2": "../../lib/NDPUI/dist/com/splitjs/drop2",
        "drop3": "../../lib/NDPUI/dist/com/splitjs/drop3",
        "page": "../../lib/NDPUI/dist/com/splitjs/page",
        "sidepanel": "../../lib/NDPUI/dist/com/splitjs/sidepanel",
        "blend": "../../lib/NDPUI/dist/com/splitjs/blend",
        "vList3": "../../lib/NDPUI/dist/com/splitjs/vList3",
        "search": "../../lib/NDPUI/dist/com/splitjs/search",
        "bread": "../../lib/NDPUI/dist/com/splitjs/bread",
        "tip": "../../lib/NDPUI/dist/com/splitjs/tip",
        "table":"../../lib/NDPUI/dist/com/splitjs/table",
        "field":"../../lib/NDPUI/dist/com/splitjs/field",
        'bubble':'../../lib/NDPUI/dist/com/splitjs/bubble',
        'prompt':'../../lib/NDPUI/dist/com/splitjs/prompt',
        "progressbar": "../../lib/NDPUI/dist/com/splitjs/progressbar",
        "select2Source": "../../lib/select2/dist/js/select2",
        "underscore": "../../lib/underscore/underscore-min",
        "pagination": "../../lib/twbs-pagination/jquery.twbsPagination",
        "moment": "../../lib/daterange2/moment",
        "daterange": "../../lib/daterange2/daterangepicker",
        "select3": "../../lib/select3/js/select3",
        "dropsort": "../../lib/dropsort/jquery.dragsort-0.5.2",
        "fileUploader": "../../lib/file-uploader/jquery.fine-uploader",
        "di": "../../lib/di/di",
        "listManager": "../../lib/listManager/js/listManager",
        "listManagerConfig": "../../lib/listManager/listManagerConfig",
        "codeMirror": "../../lib/codemirror/lib/codemirror",
        "codeMirrorAddonEdit": "../../lib/codemirror/addon/edit/matchbrackets",
        "codeMirrorAddonHintAnyword": "../../lib/codemirror/addon/hint/anyword-hint",
        "codeMirrorAddonHintShow": "../../lib/codemirror/addon/hint/show-hint",
        "groovy": "../../lib/codemirror/mode/groovy/groovy",
        "python": "../../lib/codemirror/mode/python/python",
        "ztree": "../../lib/ztree/jquery.ztree.core-3.5.min",
        "fileinput": "../../lib/fileinput/fileinput.min",
        "dropzone": "../../lib/dropzone/dropzone-amd-module",
        "lazyload": "../../lib/jquery.lazyload.min",
        "com/ndpmedia/vis/ChartWidget": "../../lib/highcharts/enhanced/js/nvis.min",
        "com/ndpmedia/vis/ChartEventListener": "../../lib/highcharts/enhanced/js/nvis.min",
        "oneYAxis": "../../lib/highcharts/enhanced/lines/oneYAxis",
        "twoYAxis": "../../lib/highcharts/enhanced/lines/twoYAxis",
        "jquery-html5Validate": "../../lib/jquery-html5Validate-min",
        "jquery-nicescroll": "../../lib/jquery.nicescroll.min",
        "imagesloaded": "../../lib/masonry/imagesloaded.pkgd.min",
        "masonry": "../../lib/masonry/masonry.min",
        "jstep": "../../lib/jstep/jstep",
        "jqueryBridget": "../../lib/masonry/jquery-bridget",
        "jquery-range": "../../lib/jquery-range/jquery.range",
        "echarts" : "../../lib/echarts.amd.source",
        'echarts/chart/line': "../../lib/echarts.amd.source",
        'echarts/chart/bar': "../../lib/echarts.amd.source",
        'echarts/chart/radar': "../../lib/echarts.amd.source",
        'customCharts' : "../../lib/custom-charts/js/customCharts"
    },
    "shim": {
        "bootstrap": {
            "deps": [
                "jquery"
            ]
        },
        "daterange": {
            "deps": [
                "moment"
            ]
        },
        "alert": {
            "deps": [
                "jquery",
                "bootstrap"
            ]
        },
        "plgDrop": {
            "deps": [
                "jquery",
                "bootstrap"
            ]
        },
        "treable": {
            "deps": [
                "bootstrap",
                "tabs"
            ]
        },
        "sutable": {
            "deps": [
                "jquery",
                "bootstrap"
            ]
        },
        "groovy": {
            "deps": [
                "codeMirror",
                "codeMirrorAddonEdit",
                "codeMirrorAddonHintAnyword",
                "codeMirrorAddonHintShow"
            ]
        },
        "python": {
            "deps": [
                "codeMirror",
                "codeMirrorAddonEdit",
                "codeMirrorAddonHintAnyword",
                "codeMirrorAddonHintShow"
            ]
        },
        drop:{
            deps:['jquery',"utils"]
        },
        "vList3": {
            "deps": [
                "search"
            ]
        },
        "blend": {
            "deps": [
                "vList3",
                "bread",
                "drop3"
            ]
        },
        "prompt":{
            deps:['bootstrap']
        },
        "customCharts" : {
            deps:['jquery']
        }
    }
});
